﻿<%@ Page Language="C#" MasterPageFile="~/teachers/masterpage.Master" AutoEventWireup="true" CodeBehind="TCurriculum.aspx.cs" Inherits="ESCHOOL.teachers.WebForm5" Title="Curriculum" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style7
        {
            width: 77%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">

                  
                       
                <table class="style7">
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:TextBox ID="txtid" runat="server" Visible="False"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lbldate" runat="server" Text="Date"></asp:Label>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddldate" runat="server">
                            </asp:DropDownList>
                            <asp:DropDownList ID="ddlmnth" runat="server">
                                <asp:ListItem Value="1">Jan</asp:ListItem>
                                <asp:ListItem Value="2">Feb</asp:ListItem>
                                <asp:ListItem Value="3">Mar</asp:ListItem>
                                <asp:ListItem Value="4">April</asp:ListItem>
                                <asp:ListItem Value="5">May</asp:ListItem>
                                <asp:ListItem Value="6">June</asp:ListItem>
                                <asp:ListItem Value="7">july</asp:ListItem>
                                <asp:ListItem Value="8">Aug</asp:ListItem>
                                <asp:ListItem Value="9">Sep</asp:ListItem>
                                <asp:ListItem Value="10">Oct</asp:ListItem>
                                <asp:ListItem Value="11">Nov</asp:ListItem>
                                <asp:ListItem Value="12">Dec</asp:ListItem>
                            </asp:DropDownList>
                            <asp:DropDownList ID="ddlyr" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblcrclm" runat="server" Text="Curricullum "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtevnt" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ControlToValidate="txtevnt" ErrorMessage="Enter event name"></asp:RequiredFieldValidator>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="btninsert" runat="server" onclick="btninst_Click" 
                                Text="Insert" />
                        </td>
                        <td>
                            <asp:Button ID="btnupdate" runat="server" onclick="btnupt_Click" 
                                Text="Update" />
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                                Width="540px" AllowPaging="True" 
                                onpageindexchanging="GridView1_PageIndexChanging">
                                <Columns>
                                    <asp:TemplateField HeaderText="Date">
                                    <ItemTemplate><%#Eval("date","{0:D}") %></ItemTemplate></asp:TemplateField>
                                    <asp:BoundField DataField="event_name" HeaderText="Event" />
                                    <asp:TemplateField HeaderText="Edit">
                                        <ItemTemplate>
                                            <asp:Button ID="btnedit" runat="server" 
                                                CommandArgument='<%# Eval("calender_id") %>' 
                                                oncommand="btnedit_Command1" Text="Edit" CausesValidation="False" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Delete">
                                        <ItemTemplate>
                                            <asp:Button ID="btndlt" runat="server" 
                                                CommandArgument='<%# Eval("calender_id") %>' Text="Delete" 
                                                oncommand="btndlt_Command" CausesValidation="False" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </td>
                    </tr>
    </table>

</asp:Content>

